<%-- 
    Document   : FailLogon
    Created on : Jun 22, 2013, 7:15:44 PM
    Author     : quannq
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<div class="mainbox-container">
    <div class="mainbox-body">
        <div class="p-form clearfix" style="margin: 20px 0 20px 135px;">
            <h2>Đăng kí tài khoản</h2>
            <div class="p-form-content clearfix" style="width: 578px; overflow: hidden;">
                <p class="p-require-note"><em>Lưu ý</em>: Các mục có dấu <span class="red">*</span> là bắt buộc </p>
                <form:form id="validate" commandName="nguoidung" action="logon" method="post">
                    <form:hidden path="quyen" value="3" />
                    <div class="form-field">
                        <label for="login_62" class="main_label cm-required cm-email">E-mail:</label>
                        <form:input id="login_62" path="username" size="30" class="validate[required,custom[email]" />
                    </div>
                    <div class="form-field">
                        <label for="elm_25" class=" cm-state cm-location-shipping">Danh Xưng:</label>
                        <form:select id="elm_25" path="danhxung" class="select_state" >
                            <form:option value="0">Ông</form:option>
                            <form:option value="1">Bà</form:option>
                        </form:select>
                    </div>
                    <div class="form-field">
                        <label for="password1" class="cm-required cm-password">Mật khẩu:</label>
                        <form:password id="password1" path="password" size="30" 
                                       autocomplete="off" class="validate[required,minSize[5]]" />
                    </div>
                    <div class="form-field">
                        <label for="password2" class="cm-required cm-password">Nhập lại mật khẩu:</label>
                        <input type="password" id="password2" name="password2P" 
                               size="30" autocomplete="off" class="validate[required,equals[password1],minSize[5]]">
                    </div>
                    <div class="sep-line" style="width:90%"></div>
                    <div class="form-field">
                        <label for="elm_6" class="cm-required ">Họ và Tên:</label>
                        <form:input id="elm_6" path="tennd" size="30" class="validate[required]" />
                    </div>
                    <div class="form-field">
                        <label for="elm_44" class="cm-required ">Điện thoại liên hệ:</label>
                        <form:input id="elm_44" path="dienthoai" size="30" class="validate[required,custom[phone]]" />
                    </div>
                    <div class="form-field">
                        <label for="elm_44" class="cm-required ">Địa chỉ:</label>
                        <form:input id="elm_44" path="diachi" size="30" class="validate[required]" />
                    </div>

                    <div class="shipping_info">
                        <div class="form-field">
                            <label for="elm_25" class=" cm-state cm-location-shipping">Tỉnh/ Thành:</label>

                            <form:select id="elm_25" path="tinh" class="select_state" >
                                <c:forEach items="${Tinh}" var="tih">
                                    <form:option value="${tih.matinh}">${tih.tentinh}</form:option>
                                </c:forEach>
                            </form:select>
                        </div>
                    </div>
                    <div class="clear">
                        <div class="form-button">
                            <div class="p-button p-button-red">
                                <input type="submit" class="p-button-start cm-check-user-panel-resize" value="Đăng ký tài khoản" name="addUserPage" id="save_profile_but">
                                <div class="p-button-end"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </form:form>
        </div>
        <div class="p-form-bottom"></div>
    </div>
</div>
